#ifndef __losor_ppobject_h__
#define __losor_ppobject_h__

#include <string>
#include "../constmap.h"
#include "../code.h"

using namespace std;

namespace losor
{
	class ppobject
	{
		public:
			ppobject( string type, ppobject *parent );
			virtual ~ppobject();
		public:
			virtual long parser( code &_code ) = 0;
		public:
			string get_caption() const;
			string get_type() const;
		protected:
			int m_line;
			string m_type;
			string m_caption;
			ppobject *m_parent;
	};
}

#endif
